package com.cws.backup;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.util.concurrent.*;

/**
 * @author cws
 */
@SpringBootApplication
public class DbAutoBackupApplication {

    public static void main(String[] args) {
        SpringApplication.run(DbAutoBackupApplication.class, args);
    }

    @Bean(name = "crawlExecutorPool")
    public ExecutorService crawlExecutorPool() {
        return new ScheduledThreadPoolExecutor(5);
    }
}
